import request from "../axios";

export default {
	// 获取出勤记录列表
	getAttendanceList(params) {
		return request({
			method: "POST",
			url: '/attendance/getAttendanceList',
			data: params
		})
	},
	// 获取个人出勤记录
	getUserAttendanceList(params) {
		return request({
			method: "POST",
			url: '/attendance/getUserAttendanceList',
			data: params
		})
	},
	// 获取个人打卡规则
	getClockinRule(params) {
		return request({
			method: "POST",
			url: '/clockinRule/getClockinRule',
			data: params
		})
	},
	// 获取打卡规则列表
	getClockinRuleList(params) {
		return request({
			method: "POST",
			url: '/clockinRule/getClockinRuleList',
			data: params
		})
	},
	// 添加/修改打卡规则
	updateClockinRule(params) {
		return request({
			method: "POST",
			url: '/clockinRule/updateClockinRule',
			data: params
		})
	},
	// 重置打卡规则
	resetClockinRule(params) {
		return request({
			method: "POST",
			url: '/clockinRule/resetClockinRule',
			data: params
		})
	},
	// 获取假期数据
	getHolidays(params) {
		return request({
			method: "POST",
			url: '/clockinRule/getHolidays',
			data: params
		})
	},
	// 新增假期
	addHolidays(params) {
		return request({
			method: "POST",
			url: '/clockinRule/addHolidays',
			data: params
		})
	},
	// 修改假期
	updateHolidays(params) {
		return request({
			method: "POST",
			url: '/clockinRule/updateHolidays',
			data: params
		})
	},
	// 删除假期
	deleteHolidays(params) {
		return request({
			method: "POST",
			url: '/clockinRule/deleteHolidays',
			data: params
		})
	},
	// 导出
	attendanceStatistics(params) {
		return request({
			method: "POST",
			url: '/exportExcel/attendanceStatistics',
			data: params
		})
	},
	
	// 获取出勤申请列表
	getAttendanceApplyList(params) {
		return request({
			method: "POST",
			url: '/attendanceApply/getAttendanceApplyList',
			data: params
		})
	},
	
	// 审核出勤申请
	examineAttendanceApply(params) {
		return request({
			method: "POST",
			url: '/attendanceApply/examineAttendanceApply',
			data: params
		})
	},
}